package com.wj.springcloud.service.impl;

import com.wj.spingcloud.entity.PaymentEntity;
import com.wj.springcloud.dao.PaymentDao;
import com.wj.springcloud.service.Paymentservice;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description:
 * @author: wj
 * @create: 2021/5/12 11:16
 */

@Service
public class PaymentServiceImpl implements Paymentservice {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(PaymentEntity paymentEntity) {
        return paymentDao.create(paymentEntity);
    }

    @Override
    public PaymentEntity getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}